<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>

</style>
<body>
    <div id="app">
        {{msg}}
        <p v-text="msg"></p>
        <p v-pre>今天我们学习了{{msg}}这个模板语法！</p>
    </div>
    <script src="./base/vue.js"></script>
    <script>
        //v-text会将绑定的dom的innerText改成指定的数据
        //v-pre指令不会解析{{}}
      var vm = new Vue({
          el:"#app",
          data:{
              msg:"我是h1标题"
          },
      })
      

      
 
    </script>
</body>
</html>